using System;

namespace MvcWebRoleUpload.Models
{
    public class ViewModelFile
    {
        public string Name { get; set; }
        public string Extension {get;set;}
        public string ContentType
        {
            get
            {
                if (!String.IsNullOrEmpty(Extension))
                {
                    return String.Format("application/{0}", Extension);
                }
                else
                {
                    return "text/plain";
                }

            }
        }

        public string Path { get; set; }
    }
}
